package util

import (
	"fmt"
	"longmen/server/config/global"
)

func Convert(str string) string {
	debug := global.Config.GetInt("msg.debug") //如果为1，就显示长提示
	if debug == 0 {
		return ""
	}
	track := RetrieveCallInfo()
	return fmt.Sprintf("PACK:%s;FILE:%s;FUNC:%s;LINE:%d ", track.PackageName, track.FileName, track.FuncName, track.Line)
}

//
func Convert2() string {
	debug := global.Config.GetInt("msg.debug") //如果为1，就显示长提示
	if debug == 0 {
		return ""
	}
	track := RetrieveCallInfo()
	return fmt.Sprintf("PACK:%s;FILE:%s;FUNC:%s;LINE:%d ", track.PackageName, track.FileName, track.FuncName, track.Line)
}
